package com.ruoyi.project.controller;

import com.ruoyi.project.domain.dto.DictDataDTO;
import com.ruoyi.project.service.DictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private DictDataService service;

    @GetMapping("/tree")
    public List<DictDataDTO> queryTree(DictDataDTO param) {
        return this.service.queryTree(param);
    }
}
